/*
 * Author: 李波(Edwin Lee)
 * Date: 2024-07-07 23:30:18
 * FilePath: /code/C/Strchr/main.c
 * LastEditTime: 2024-08-02 12:15:23
 * version: 1.0
 * Description: 
 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main() {
	//测试一：strchr的基本用法，返回字符串中某个字符首次出现的地址
	char str1[] = "hellogworld";
	char* p = strchr(str1, 'g');
	if(NULL == p)
	{
		printf("not fund%c\n",'g');
	}
	else 
	{
		printf("%s\n", p);
	}


	return 0;
}
